<template>
  <div>
    <h3 id="Li">小李</h3>
    <Demo  ref="de"/>
  </div>
</template>

<script>
import Demo from "./components/Demo.vue";
export default {
    mounted(){
    console.log(document.querySelector("h3"));
    console.log(this.$refs.de.msg);
    this.$refs.de.msg="嘻嘻";
    this.$refs.de.fn()
    // console.log( this.$refs.de.fn() );
    
},
  components: {
    Demo,
  },
};
</script>

<style>
</style>